/*
 * © Copyright 2011 Romain Marteau, Matthieu Totet
 * 
 *    This file is part of VineaToum.
 *
 *    VineaToum is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    VineaToum is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with VineaToum.  If not, see <http://www.gnu.org/licenses/>.
 *    
 */

package org.vineatoum.business.state;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.Vector;

import org.vineatoum.business.state.abstraction.VinAbstract;
import org.vineatoum.view.utils.jtablecustom.TableListener;

public class Recolte extends VinAbstract{
	private static Set<Recolte> recoltes = new HashSet<Recolte>();
	
	Raisin raisin;
	Date date;
	float percentage;
	String comment;
	String type;
	public Recolte()
	{
		
	}
	public Recolte(Raisin raisin) {
		this.raisin = raisin;
	}
	
	public Recolte(Raisin raisin, String benneId) {
		this.raisin = raisin;
	}
	
	public Recolte(Raisin raisin, Benne benne) {
		this.raisin = raisin;
	}
	
	@Override
	public void getTracking() {
		System.out.println(this);
		raisin.getTracking();
	}
	
	@Override
	public String toString() {
		String out = "Recolte de la plantation " + raisin.toString() + "\n";

		return out;
	}

	public static Set<Recolte> getCollection() {
		return recoltes;
	}

	@Override
	public TableListener getNewInstance() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Vector<String> getVectorColumns() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Vector<Object> getVectorData() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateField(String field, Object value) {
		// TODO Auto-generated method stub
		
	}
}
